import request from '@/utils/request'

// 查询警告信息列表
export function listWarnrecord(query) {
  return request({
    url: '/ruoyi-aimp/warnrecord/list',
    method: 'get',
    params: query
  })
}

// 查询警告信息详细
export function getWarnrecord(warnrecordId) {
  return request({
    url: '/ruoyi-aimp/warnrecord/' + warnrecordId,
    method: 'get'
  })
}

// 新增警告信息
export function addWarnrecord(data) {
  return request({
    url: '/ruoyi-aimp/warnrecord',
    method: 'post',
    data: data
  })
}

// 修改警告信息
export function updateWarnrecord(data) {
  return request({
    url: '/ruoyi-aimp/warnrecord',
    method: 'put',
    data: data
  })
}

// 删除警告信息
export function delWarnrecord(warnrecordId) {
  return request({
    url: '/ruoyi-aimp/warnrecord/' + warnrecordId,
    method: 'delete'
  })
}
